package serverDB;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
/**
 * container of one row data in Client table
 * @author ran
 *
 */
public class Client implements Serializable{
	/**
	 * default serialVersionUID
	 */
	private static final long serialVersionUID = 1L;
	 private long userId = 0 ;
	 private String userName = "";
	 private String password = "";
	 private String userEmail = "";
	 private Set<Computer> computers = new HashSet<Computer>();
	 private Set<Box> boxes = new HashSet<Box>();
	//getters and setters
	public Set<Box> getBoxes() {
		return boxes;
	}
	public void setBoxes(Set<Box> boxes) {
		this.boxes = boxes;
	}
	public void addBoxes(Box box) {
		this.boxes.add(box) ;
	}
	public Set<Computer> getComputers() {
		return computers;
	}
	public void setComputers(Set<Computer> computer) {
		this.computers = computer;
	}
	public void addComputers(Computer computer) {
		this.computers.add(computer) ;
	}
	public long getUserId() {
		return userId;
	}
	public void setUserId(long userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getUserEmail() {
		return userEmail;
	}
	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}
	}

